package cn.ybk.org.mapper;

import cn.ybk.basic.mapper.BaseMapper;
import cn.ybk.org.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {
    // 抽屉
    List<Employee> drawer(Long id);

    Employee findByName(String username);

    Employee findByShopId(Long shopId);

    void addToEmpRole(@Param("empId") Long id, @Param("rolesId") List<Long> roles);

    void deleteToEmpRole(Long id);

    Employee findByLoginfoId(Long id);

}
